//
//  ViewController.m
//  05-HomeWork
//
//  Created by dllo on 16/7/21.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "ViewController.h"
#import "Carouse.h"
#define SCREEN [UIScreen mainScreen].bounds
#define WIDTH SCREEN.size.width
#define HEIGHT SCREEN.size.height
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSMutableArray *arr = [NSMutableArray array];
    for (int i = 0; i < 6; i++) {
        [arr addObject:[NSString stringWithFormat:@"hzw%d", i]];
    }
    Carouse *carImage = [[Carouse alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT) array:arr];
    [self.view addSubview:carImage];
    carImage.scrollView.showsHorizontalScrollIndicator = NO;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
